package com.p595263720.o_amap.map.models;

import com.amap.api.maps.AMap;
import com.amap.api.maps.CameraUpdateFactory;
import com.amap.api.maps.model.LatLng;
import com.amap.api.maps.model.LatLngBounds;

import java.util.List;

public class UnifiedShowAreaOptions {

    private List<LatLng> latLngList;

    int var1;


    public void applyTo(AMap map) {
        LatLngBounds.Builder newbounds = new LatLngBounds.Builder();
        for (LatLng latlng : latLngList) {
            newbounds.include(latlng);
        }
        map.animateCamera(CameraUpdateFactory.newLatLngBounds(newbounds.build(),
                var1));
    }

}
